package com.by.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author ServivE
 * @version 0.1
 * @className Sku
 * @description
 * @date 2024/11/11 14:58
 * @since jdk17
 */
@Data
@ApiModel("产品规格")
@TableName
public class Sku {
    @TableId(value = "sku_id",type = IdType.AUTO)
    Integer sku_id;

    Integer spu_id;
    String sku_name;

    @ApiModelProperty("多个销售属性值id逗号分隔")
    String attrs;

    String img_url;

    @ApiModelProperty("售价，整数方式保存")
    Integer price_fee;

    @ApiModelProperty(" 市场价，整数方式保存")
    Integer market_price_fee;

    @ApiModelProperty("商品编码")
    String party_code;

    @ApiModelProperty("商品条形码")
    String model_id;


    Double weight;
    Double volume;

    @ApiModelProperty("状态 1:enable, 0:disable, -1:deleted")
    Integer status;
    @TableField(exist = false)
    Integer actual_stock;//实际库存
}
